@echo off
set PKG=demo.xsp
set BIN=bin.xsc

del %PKG% /Q /F
del %BIN% /Q /F

if exist "temp" (
	7z.exe a -tzip %BIN% .\temp\*
) else (
	7z.exe a -tzip %BIN% .\src\*
)

7z.exe a -tzip -x@excludefile.txt %PKG% .\*

rd temp /Q /S
del %BIN% /Q /F